<template>
  <div class="swiper-box">
    <div class="ww">
      <div class="swiperImg">
        <div class="swiper">
          <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="./images/img1.jpg" alt="无法正常显示"></div>
            <div class="swiper-slide"><img src="./images/img2.jpg" alt="无法正常显示"></div>
            <div class="swiper-slide"><img src="./images/img3.jpg" alt="无法正常显示"></div>
          </div>
          <!-- 如果需要分页器 -->
          <div class="swiper-pagination"></div>
          
          <!-- 如果需要导航按钮 -->
          <!-- <div class="swiper-button-prev"></div>
          <div class="swiper-button-next"></div> -->
          
          <!-- 如果需要滚动条 -->
          <div class="swiper-scrollbar"></div>
        </div>
      </div>
      <div class="swiper-r">
        <router-link to="#"></router-link>
        <p>PC 安卓 iPhone WP iPad Mac 六大客户端</p>
      </div>
    </div>
  </div>
</template>

<script>
import Swiper from 'swiper'
export default {
  name:'Content',
  mounted() {
    this.$nextTick(() => {
      var mySwiper = new Swiper ('.swiper', {
          loop: true, // 循环模式选项
          autoplay: {
            delay: 2000
          },
          effect: 'fade',
          // 如果需要分页器
          pagination: {
          el: '.swiper-pagination',
          // clickable: true,
        },
        // 如果需要前进后退按钮
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev',
        }
      })        
    })
  },
}
 
</script>

<style lang="less" scoped>
  .swiper-box {
    .swiperImg{
      width: 100%;
      height: 285px;
      overflow: hidden;
      .swiper {
        position: relative;
        height: 100%;
        img {
          width: 100%;
          height: 285px;
        }
      }
    }
    .swiper-r {
      position: absolute;
      top: 0;
      right: 0;
      width: 254px;
      height: 285px;
      background-color: rgba(0, 0, 0, 0);
      background: url(./images/download.png) no-repeat 0 0;
      z-index: 10;
      a {
        display: block;
        width: 215px;
        height: 56px;
        margin: 186px 0 0 19px;
      }
      p {
        margin: 10px auto;
        text-align: center;
        color: #8d8d8d;
      }
    }
  }
  .ww {
    position: relative;
  }
  .swiper-button-next:after, .swiper-container-rtl .swiper-button-prev:after, .swiper-button-prev:after, .swiper-container-rtl .swiper-button-next:after{
    font-size: 30px;
    font-weight: bold;
    color: #C20C0C;
  }
</style>